﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AssociationCorpLogic
{
    class Character
    {
        //Variables:
        private char character;
        private bool uncovered = false;

        //Attributes:
        public char Self {
            get
            {
                if (uncovered)
                {
                    return this.character;
                }
                else
                {
                    return '-';
                }
            }
        }
        public bool Uncovered { get { return this.uncovered; } }

        //Constructors:
        public Character(string character)
        {
            this.character = (char)character[0];
        }
        public Character(char character)
        {
            this.character = character;
        }

        //Events:
        //Methods:
        public bool Uncover(char character)
        {
            if (this.character.Equals(character))
            {
                //TODO: generate uncover event?
                this.uncovered = true;
                return true;
            }
            else
            {
                //TODO: generate failed uncover event?
                return false;
            }
        }
    }
}
